package com.bagus.mediapipefacedetection.constant;

public enum ErrorType {
    MGFacePPSkinAICameraErrorNone(1000, "MGFacePPSkinAICameraErrorNone", "没有错误"),
    MGFacePPSkinAICameraErrorIllegalParameter(2001, "MGFacePPSkinAICameraErrorIllegalParameter", "传入的参数不合法"),
    MGFacePPSkinAICameraErrorLoadModelFailed(2002, "MGFacePPSkinAICameraErrorLoadModelFailed", "模型加载失败"),
    MGFacePPSkinAICameraErrorMobilePhoneNotSupport(2003, "MGFacePPSkinAICameraErrorMobilePhoneNotSupport", "手机不在支持列表里"),
    MGFacePPSkinAICameraErrorNotResource(2004, "MGFacePPSkinAICameraErrorNotResource", "未添加资源包"),
    MGFacePPSkinAICameraErrorNotCameraPermission(2005, "MGFacePPSkinAICameraErrorNotCameraPermission", "APP没有获取相机权限"),
    MGFacePPSkinAICameraErrorNotCameraSupport(2006, "MGFacePPSkinAICameraErrorNotCameraSupport", "APP未找到可用的相机设备"),
    MGFacePPSkinAICameraErrorFaceInitFail(2007, "MGFacePPSkinAICameraErrorFaceInitFail", "SDK活体检测启动失败"),
    MGFacePPSkinAICameraErrorBackGround(2008, "MGFacePPSkinAICameraErrorBackGround", "因APP进入后台导致检测 失败"),
    MGFacePPSkinAICameraErrorTakeFailed(2009, "MGFacePPSkinAICameraErrorTakeFailed", "SDK 拍照失败"),
    MGFacePPSkinAICameraErrorUserCancel(2010, "MGFacePPSkinAICameraErrorUserCancel", "用户取消活体检测");

    private int code;
    private String message;
    private String desc;

    ErrorType(int code, String message, String desc) {
        this.code = code;
        this.message = message;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public String getDesc() {
        return desc;
    }
}
